<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://www.ecside.org" prefix="ec"%>
<jsp:useBean id="pageBean" scope="request" class="com.agileai.hotweb.domain.PageBean"/>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>我的草稿</title>
<%@include file="/jsp/inc/resource.inc.jsp"%>
<script language="javascript">
var informationBox;
function createInformationBox(){
	if (!informationBox){
			informationBox = new PopupBox('informationBox','业务表单',{size:'big',width:'1000px',height:'600px',top:'3px',scroll:'yes'});
		}
	var url = $('#WFP_MODIFY_URL').val();
	informationBox.sendRequest(url);			
}
function doDelete(itemValue)
{
	if (!isValid(itemValue)){
		writeErrorMsg('请先选中一条记录!');
		return;
	}
	alert("删除数据将导致业务不同步！");
  	$("#"+actionTypeTagId).val(deleteActionValue);
	if(confirm(confirmMsg)) {
		showSplash(deleteMsg);
		$('#'+formTagId).submit();
	}
}
</script>
</head>
<body>
<form action="<%=pageBean.getHandlerURL()%>" name="form1" id="form1" method="post">
<%@include file="/jsp/inc/message.inc.jsp"%>
<div id="__ToolBar__">
<table border="0" cellpadding="0" cellspacing="1">
<tr height="24px;">
  <td onmouseover="onMover(this);" onmouseout="onMout(this);" class="bartdx" align="center" onclick="createInformationBox()"><input value="&nbsp;" type="button" class="editImgBtn" id="editImgBtn" title="编辑" />编辑</td>
  <td onmouseover="onMover(this);" onmouseout="onMout(this);" hotKey="D" class="bartdx" align="center" onClick="doDelete($('#'+rsIdTagId).val());"><input title="删除" type="button" class="delImgBtn" value="&nbsp;" />删除</td>
</tr>
</table>
</div>
<ec:table 
form="form1"
var="row"
items="pageBean.rsList" csvFileName="我的草稿.csv"
retrieveRowsCallback="process" xlsFileName="我的草稿.xls"
useAjax="true" sortable="true"
doPreload="false" toolbarContent="navigation|pagejump |pagesize |export|extend|status"
width="100%" rowsDisplayed="10"
listWidth="100%" 
height="400px" 
>
<ec:row styleClass="odd" ondblclick="createInformationBox()" oncontextmenu="selectRow(this,{WWD_ID:'${row.WWD_ID}'});refreshConextmenu()" onclick="selectRow(this,{WWD_ID:'${row.WWD_ID}',WFP_MODIFY_URL:'${row.WFP_MODIFY_URL}'})">
	<ec:column width="50" style="text-align:center" property="_0" title="序号" value="${GLOBALROWCOUNT}" />
	<ec:column width="240" property="WFP_NAME" title="流程名称"   />
	<ec:column width="120" property="WWD_BIZ_TITLE" title="业务标题" />    
	<ec:column width="120" property="WWD_CREATER_NAME" title="创建人"   />
	<ec:column width="120" property="WWD_CREATE_TIME" title="创建时间" cell="date" format="yyyy-MM-dd HH:mm" />
</ec:row>
</ec:table>
<input type="hidden" name="WWD_ID" id="WWD_ID" value="" />
<input type="hidden" name="WFP_MODIFY_URL" id="WFP_MODIFY_URL" value="" />
<input type="hidden" name="actionType" id="actionType" />
</form>
</body>
</html>
<%@include file="/jsp/inc/scripts.inc.jsp"%>
